import Flutter

@UIApplicationMain
@objc class AppDelegate: YFlutterAppDelegate {
    static var mainFlutterViewController: FlutterViewController!

    override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        GeneratedPluginRegistrant.register(with: self)
        return super.application(application, didFinishLaunchingWithOptions: launchOptions)
    }
    
    override func onYCreated(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]?) {
        MyPlugin.register()
    }
    
    override func onYConfig(yFlutter: YFlutter) {
        YConfig.DEBUG = IFinal.DEBUG
        YConfig.themeColor = UIColor.black
        YConfig.navigationBarBackgroundImage = "statubar"
    }
}
